package cn.ycc1.boot3tx.service;

import cn.ycc1.boot3tx.domain.Book;
import cn.ycc1.boot3tx.domain.dto.BuyBookDTO;
import com.baomidou.mybatisplus.extension.service.IService;

import java.math.BigDecimal;

/**
* @author mi
* @description 针对表【book】的数据库操作Service
* @createDate 2024-12-17 21:07:18
*/
public interface BookService extends IService<Book> {

    void decreaseStock(Integer bookId, Integer quantity);

    void decreaseBalance(Integer userId, BigDecimal amount);
}
